<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkAppChooser</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="ApplicationChoosing.html" title="从已安装的程序中选择">
<link rel="prev" href="ApplicationChoosing.html" title="从已安装的程序中选择">
<link rel="next" href="gtk3-GtkAppChooserButton.html" title="GtkAppChooserButton">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ApplicationChoosing.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ApplicationChoosing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkAppChooserButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkAppChooser.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkAppChooser.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkAppChooser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkAppChooser.top_of_page"></a>GtkAppChooser</span></h2>
<p>GtkAppChooser — Interface implemented by widgets allowing to chooser applications</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkAppChooser.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

                    <a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser">GtkAppChooser</a>;
<a href="../gio/GAppInfo.html"><span class="returnvalue">GAppInfo</span></a> *          <a class="link" href="gtk3-GtkAppChooser.html#gtk-app-chooser-get-app-info" title="gtk_app_chooser_get_app_info ()">gtk_app_chooser_get_app_info</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> *self</code></em>);
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="gtk3-GtkAppChooser.html#gtk-app-chooser-get-content-type" title="gtk_app_chooser_get_content_type ()">gtk_app_chooser_get_content_type</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAppChooser.html#gtk-app-chooser-refresh" title="gtk_app_chooser_refresh ()">gtk_app_chooser_refresh</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> *self</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkAppChooser.description"></a><h2>Description</h2>
<p>
<a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> is an interface that can be implemented by widgets which
allow the user to choose an application (typically for the purpose of
opening a file). The main objects that implement this interface are
<a class="link" href="gtk3-GtkAppChooserWidget.html#GtkAppChooserWidget" title="struct GtkAppChooserWidget"><span class="type">GtkAppChooserWidget</span></a>, <a class="link" href="gtk3-GtkAppChooserDialog.html#GtkAppChooserDialog" title="struct GtkAppChooserDialog"><span class="type">GtkAppChooserDialog</span></a> and <a class="link" href="gtk3-GtkAppChooserButton.html#GtkAppChooserButton" title="struct GtkAppChooserButton"><span class="type">GtkAppChooserButton</span></a>.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkAppChooser.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkAppChooser"></a><h3>GtkAppChooser</h3>
<pre class="programlisting">typedef struct _GtkAppChooser GtkAppChooser;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-app-chooser-get-app-info"></a><h3>gtk_app_chooser_get_app_info ()</h3>
<pre class="programlisting"><a href="../gio/GAppInfo.html"><span class="returnvalue">GAppInfo</span></a> *          gtk_app_chooser_get_app_info        (<em class="parameter"><code><a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> *self</code></em>);</pre>
<p>
Returns the currently selected application.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gio/GAppInfo.html"><span class="type">GAppInfo</span></a> for the currently selected
application, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none is selected. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-app-chooser-get-content-type"></a><h3>gtk_app_chooser_get_content_type ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             gtk_app_chooser_get_content_type    (<em class="parameter"><code><a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> *self</code></em>);</pre>
<p>
Returns the current value of the <span class="type">"content-type"</span> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the content type of <em class="parameter"><code>self</code></em>. Free with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-app-chooser-refresh"></a><h3>gtk_app_chooser_refresh ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_app_chooser_refresh             (<em class="parameter"><code><a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a> *self</code></em>);</pre>
<p>
Reloads the list of applications.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAppChooser.html#GtkAppChooser" title="GtkAppChooser"><span class="type">GtkAppChooser</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>